﻿namespace Traceability.API.Dtos
{
    /// <summary>
    /// 用户数据传输对象
    /// </summary>
    /// <remarks>
    /// 用于在API接口中传输用户信息，包含用户基本信息和角色信息
    /// </remarks>
    public class UserDto
    {
        /// <summary>
        /// 用户唯一标识符
        /// </summary>
        /// <example>1</example>
        public int UserId { get; set; }

        /// <summary>
        /// 用户角色关系ID
        /// </summary>
        /// <example>1</example>
        public int URId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        /// <example>admin</example>
        public string UserName { get; set; }

        /// <summary>
        /// 用户密码（登录时使用）
        /// </summary>
        /// <example>123456</example>
        public string Password { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        /// <example>管理员</example>
        public string UserNickName { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        /// <example>1</example>
        public int RoleId { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        /// <example>管理员</example>
        public string RoleName { get; set; }
    }
}
